<?php

namespace App\Repository;


use App\Type;
class TypeRepos 
{


    protected $type;
   /**
   * 2019-01-06
   * 依赖注入
   * sunday
   */
   public function __construct(Type $type){
        $this->type = $type;
   }

   public function getListData($id){
        $data = $this->type->where('id','>',$id)->get()->toArray();
        $data = json_decode(json_encode($data), true);
        return $data;
   }
}
